import persistentStorage from '../../../utils/storage.js'
const storage = persistentStorage()
export default {
	namespaced: true,
	state: {
		token: storage.getSorage('user').token || ''
	},
	mutations: {
		setToken(state, payload) {

			state.token = payload
			storage.setStorage('user', payload)
		}
	}
}